package com.vr.aliyunOss.auto;


import com.vr.aliyunOss.properties.AliOssProperties;
import com.vr.aliyunOss.service.AliOssUtil;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(AliOssProperties.class)
public class aliyunOssAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean(AliOssUtil.class)
    public AliOssUtil aliOssUtil() {
        return new AliOssUtil();
    }
}
